﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using BathhouseService.Models.SqlModels;


namespace BathhouseService.CURD.ViewModels.PackageServiceSettingsVMs
{
    public partial class PackageServiceSettingsSearcher : BaseSearcher
    {
        public List<ComboSelectListItem> AllPackageServices { get; set; }
        [Display(Name = "套餐")]
        public int? PackageServiceId { get; set; }
        protected override void InitVM()
        {
            AllPackageServices = DC.Set<PackageService>().GetSelectListItems(LoginUserInfo?.DataPrivileges, null, y => y.Name);
        }

    }
}
